home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Database Designers / Rational Rose 2000 / Rational Setup.EXE / common / lib / B / cc_harness < prev    next >
Encoding:
Text File  |  1999-01-26  |  307 b   |  13 lines

  1. use Config;
  2.  
  3. $libdir = $ENV{PERL_SRC} || "$Config{installarchlib}/CORE";
  4.  
  5. if (!grep(/^-[cS]$/, @ARGV)) {
  6.     $linkargs = sprintf("%s $libdir/$Config{libperl} %s",
  7.             @Config{qw(ldflags libs)});
  8. }
  9.  
  10. $cccmd = "$Config{cc} $Config{ccflags} -I$libdir @ARGV $linkargs";
  11. print "$cccmd\n";
  12. exec $cccmd;
  13.